import { Routes, Route, Navigate } from "react-router-dom";
import Home from "@/pages/home/index";
import Sugg from "@/pages/suggestions/index";
import List from "@/pages/document/list";
import Editing from "@/pages/document/editing";

const Router = () => (<Routes>
  <Route path="/" element={<Navigate to={'/home'} />} />
  <Route path="/login" element={<Navigate to={'/home'} />} />
  <Route path="/home" element={<Home />} />
  <Route path="/suggestions" element={<Sugg />} />
  <Route path="/editing" element={<Editing />} />
  <Route path="/cloud_doc/:menuId" element={<List />} />
  <Route path="*" element={<Navigate to={'/home'} />} />
</Routes>);

export default Router;
